package zozopo.warehouse.operations;

import java.math.BigDecimal;

public class ReceiptTB {
	public static final String TABLE_NAME    = "receipt_warehouse";
	
	
	public static final String ID_RECEIPT = "id_receipt";
	public static final String RECEIPTLISTID_RECEIPT = "receiptlistid_receipt";
	public static final String GOODSID_RECEIPT = "goodsid_receipt";
	public static final String GOODUNIT_RECEIPT = "goodunit_receipt";
	public static final String GOODSNAME_RECEIPT = "goodsname_receipt";
	public static final String WAREHOUSEID_RECEIPT = "warehouseid_receipt";
	public static final String WAREHOUSENAME_RECEIPT = "warehousename_receipt";
	public static final String PURCHASEID_RECEIPT = "purchaseid_receipt";
	
	public static final String SUPPLIERNAME_RECEIPT = "suppliername_receipt";
	public static final String SUPPLIERID_RECEIPT = "supplierid_receipt";
	public static final String NUMBER_RECEIPT = "number_receipt";
	public static final String RESERVE_RECEIPT = "reserve_receipt";
	public static final String PRICE_RECEIPT = "price_receipt";
	public static final String PROFIT_RECEIPT = "profit_receipt";
	public static final String IMAGE_RECEIPT = "image_receipt";
	
	public static final String TOTAL_RECEIPT = "total_receipt";
	public static final String REMARK_RECEIPT = "remark_receipt";
	public static final String KIND_RECEIPT = "kind_receipt";
	public static final String LABLE_RECEIPT = "lable_receipt";
	public static final String USERNAME_RECEIPT = "username_receipt";
	public static final String USEREMAIL_RECEIPT = "useremail_receipt";
	public static final String STATE_RECEIPT = "state_receipt";
	
	public static final String ISCANCEL_RECEIPT = "iscancel_receipt";
	
	public static final String DATE_RECEIPT = "date_receipt";
	
	public static final String STOCK_RECEIPT = "stock_receipt";
	
	
	private int id_receipt;
	private int purchaseid_receipt;
	private int receiptlistid_receipt;
	private int goodsid_receipt;
	
	private String goodunit_receipt;
	private String goodsname_receipt;
	private int warehouseid_receipt;
	private String warehousename_receipt;
	private String suppliername_receipt;
	private int supplierid_receipt;
	private int number_receipt;
	private int reserve_receipt;
	
	private int stock_receipt;
	
	private double price_receipt;
	private double profit_receipt;
	private double total_receipt;
	private String remark_receipt;
	private String kind_receipt;
	private String lable_receipt;
	private String username_receipt;
	private String useremail_receipt;
	private String state_receipt;
	private String date_receipt;
	private String image_receipt;
	
	private boolean iscancel_receipt;
	//显示
	private int goodssalesnumber;
	private int goodsnumber;
	private double surplusday;
	private double average;
	private double profit;
	private double sumprofit;
	
	public int getId_receipt() {
		return id_receipt;
	}
	public void setId_receipt(int id_receipt) {
		this.id_receipt = id_receipt;
	}
	public int getReceiptlistid_receipt() {
		return receiptlistid_receipt;
	}
	public void setReceiptlistid_receipt(int receiptlistid_receipt) {
		this.receiptlistid_receipt = receiptlistid_receipt;
	}
	public int getGoodsid_receipt() {
		return goodsid_receipt;
	}
	public void setGoodsid_receipt(int goodsid_receipt) {
		this.goodsid_receipt = goodsid_receipt;
	}
	public String getGoodunit_receipt() {
		return goodunit_receipt;
	}
	public void setGoodunit_receipt(String goodunit_receipt) {
		this.goodunit_receipt = goodunit_receipt;
	}
	public String getGoodsname_receipt() {
		return goodsname_receipt;
	}
	public void setGoodsname_receipt(String goodsname_receipt) {
		this.goodsname_receipt = goodsname_receipt;
	}
	public int getWarehouseid_receipt() {
		return warehouseid_receipt;
	}
	public void setWarehouseid_receipt(int warehouseid_receipt) {
		this.warehouseid_receipt = warehouseid_receipt;
	}
	public String getWarehousename_receipt() {
		return warehousename_receipt;
	}
	public void setWarehousename_receipt(String warehousename_receipt) {
		this.warehousename_receipt = warehousename_receipt;
	}
	public String getSuppliername_receipt() {
		return suppliername_receipt;
	}
	public void setSuppliername_receipt(String suppliername_receipt) {
		this.suppliername_receipt = suppliername_receipt;
	}
	public int getSupplierid_receipt() {
		return supplierid_receipt;
	}
	public void setSupplierid_receipt(int supplierid_receipt) {
		this.supplierid_receipt = supplierid_receipt;
	}
	public int getNumber_receipt() {
		return number_receipt;
	}
	public void setNumber_receipt(int number_receipt) {
		this.number_receipt = number_receipt;
	}
	public int getReserve_receipt() {
		return reserve_receipt;
	}
	public void setReserve_receipt(int reserve_receipt) {
		this.reserve_receipt = reserve_receipt;
	}
	public double getPrice_receipt() {
		return price_receipt;
	}
	public void setPrice_receipt(double price_receipt) {
		this.price_receipt = price_receipt;
	}
	public double getTotal_receipt() {
		return total_receipt;
	}
	public void setTotal_receipt(double total_receipt) {
		this.total_receipt = total_receipt;
	}
	public String getRemark_receipt() {
		return remark_receipt;
	}
	public void setRemark_receipt(String remark_receipt) {
		this.remark_receipt = remark_receipt;
	}
	public String getKind_receipt() {
		return kind_receipt;
	}
	public void setKind_receipt(String kind_receipt) {
		this.kind_receipt = kind_receipt;
	}
	public String getLable_receipt() {
		return lable_receipt;
	}
	public void setLable_receipt(String lable_receipt) {
		this.lable_receipt = lable_receipt;
	}
	public String getUsername_receipt() {
		return username_receipt;
	}
	public void setUsername_receipt(String username_receipt) {
		this.username_receipt = username_receipt;
	}
	public String getUseremail_receipt() {
		return useremail_receipt;
	}
	public void setUseremail_receipt(String useremail_receipt) {
		this.useremail_receipt = useremail_receipt;
	}
	public String getState_receipt() {
		return state_receipt;
	}
	public void setState_receipt(String state_receipt) {
		this.state_receipt = state_receipt;
	}
	public String getDate_receipt() {
		return date_receipt;
	}
	public void setDate_receipt(String date_receipt) {
		this.date_receipt = date_receipt;
	}
	public int getPurchaseid_receipt() {
		return purchaseid_receipt;
	}
	public void setPurchaseid_receipt(int purchaseid_receipt) {
		this.purchaseid_receipt = purchaseid_receipt;
	}
	public double getProfit_receipt() {
		return profit_receipt;
	}
	public void setProfit_receipt(double profit_receipt) {
		this.profit_receipt = profit_receipt;
	}
	
	public double getSurplusday() {
		return surplusday;
	}
	public void setSurplusday(double surplusday) {
		this.surplusday = surplusday;
	}
	public double getAverage() {
		return average;
	}
	public void setAverage(double average) {
		this.average = average;
	}
	public int getGoodsnumber() {
		return goodsnumber;
	}
	public void setGoodsnumber(int goodsnumber) {
		this.goodsnumber = goodsnumber;
	}
	public String getImage_receipt() {
		return image_receipt;
	}
	public void setImage_receipt(String image_receipt) {
		this.image_receipt = image_receipt;
	}
	public int getGoodssalesnumber() {
		return goodssalesnumber;
	}
	public void setGoodssalesnumber(int goodssalesnumber) {
		this.goodssalesnumber = goodssalesnumber;
	}
	public double getProfit() {
		return profit;
	}
	public void setProfit(double profit) {
		BigDecimal bd = new BigDecimal(profit); 
		bd = bd.setScale(2,BigDecimal.ROUND_HALF_UP);  
		
		this.profit = bd.doubleValue();
	}
	public double getSumprofit() {
		return sumprofit;
	}
	public void setSumprofit(double sumprofit) {
		BigDecimal bd = new BigDecimal(sumprofit); 
		bd = bd.setScale(2,BigDecimal.ROUND_HALF_UP);  
		this.sumprofit = bd.doubleValue();
	}
	public boolean isIscancel_receipt() {
		return iscancel_receipt;
	}
	public void setIscancel_receipt(boolean iscancel_receipt) {
		this.iscancel_receipt = iscancel_receipt;
	}
	public int getStock_receipt() {
		return stock_receipt;
	}
	public void setStock_receipt(int stock_receipt) {
		this.stock_receipt = stock_receipt;
	}
}
